]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-recorder: send EOS to the pipeline
authorWim Taymans <wtaymans@redhat.com>
Wed, 11 Jun 2014 20:18:39 +0000 (22:18 +0200)
committerWim Taymans <wtaymans@redhat.com>
Mon, 23 Jun 2014 15:16:55 +0000 (17:16 +0200)
Send EOS to the complete pipeline instead of only to our own source.

When there are multiple sources in the pipeline (for example when we also
record audio), the pipeline will send the EOS to all sources in order to
shut down the complete pipeline.

src/shell-recorder.c

index f0b3a64242a962a29bd9a1163453799deb198aa1..494ae52b5a719ce6f82bc3fb9825de6422d10f44 100644 (file)
@@ -1541,8 +1541,8 @@ recorder_close_pipeline (ShellRecorder *recorder)
        * is written. The bus watch for the pipeline will get it and do
        * final cleanup
        */
-      shell_recorder_src_close (SHELL_RECORDER_SRC (recorder->current_pipeline->src));
-
+      gst_element_send_event (recorder->current_pipeline->pipeline,
+          gst_event_new_eos());
       recorder->current_pipeline = NULL;
     }
 }